/// YApi QuickType插件生成，具体参考文档:https://plugins.jetbrains.com/plugin/18847-yapi-quicktype/documentation

import 'dart:convert';

IntellHistoryDto intellHistoryDtoFromJson(String str) => IntellHistoryDto.fromJson(json.decode(str));

String intellHistoryDtoToJson(IntellHistoryDto data) => json.encode(data.toJson());

class IntellHistoryDto {
    IntellHistoryDto({
        required this.updateTime,
        required this.lon,
        required this.remark,
        required this.typeStr,
        required this.createBy,
        required this.createTime,
        required this.phone,
        required this.idcard,
         this.content,
         this.detail,
        required this.annexs,
        required this.typeId,
        required this.id,
        required this.position,
        required this.isDel,
        required this.lat,
        required this.status,
         this.statusStr,
    });

    int updateTime;
    String lon;
    String remark;
    String typeStr;
    String createBy;
    int createTime;
    String phone;
    String idcard;
    List<Annex> annexs;
    String typeId;
    String id;
    String position;
    String? content;
    String? detail;
    int isDel;
    String lat;
    int status;
    String? statusStr;

    factory IntellHistoryDto.fromJson(Map<dynamic, dynamic> json) => IntellHistoryDto(
        updateTime: json["updateTime"],
        lon: json["lon"],
        remark: json["remark"],
        typeStr: json["typeStr"],
        createBy: json["createBy"],
        createTime: json["createTime"],
        phone: json["phone"],
        idcard: json["idcard"],
        annexs: List<Annex>.from(json["annexs"].map((x) => Annex.fromJson(x))),
        typeId: json["typeId"],
        id: json["id"],
        position: json["position"],
        isDel: json["isDel"],
        lat: json["lat"],
        status: json["status"],
        statusStr: json["statusStr"],
        content: json["content"],
        detail: json["detail"],
    );

    Map<dynamic, dynamic> toJson() => {
        "updateTime": updateTime,
        "lon": lon,
        "remark": remark,
        "typeStr": typeStr,
        "createBy": createBy,
        "createTime": createTime,
        "phone": phone,
        "idcard": idcard,
        "annexs": List<dynamic>.from(annexs.map((x) => x.toJson())),
        "typeId": typeId,
        "id": id,
        "position": position,
        "isDel": isDel,
        "lat": lat,
        "status": status,
    };
}

class Annex {
    Annex({
        required this.path,
        required this.createBy,
        required this.size,
        required this.createTime,
        required this.name,
        required this.qingbaoId,
        required this.updateTime,
        required this.id,
        required this.type,
        required this.isDel,
        required this.coverImg,
    });

    String path;
    String createBy;
    int size;
    int createTime;
    String name;
    String qingbaoId;
    int updateTime;
    String id;
    String coverImg;
    int type;
    int isDel;

    factory Annex.fromJson(Map<dynamic, dynamic> json) => Annex(
        path: json["path"],
        createBy: json["createBy"],
        size: json["size"],
        createTime: json["createTime"],
        name: json["name"],
        qingbaoId: json["qingbaoId"],
        updateTime: json["updateTime"],
        id: json["id"],
        type: json["type"],
        isDel: json["isDel"],
        coverImg: json["coverImg"],
    );

    Map<dynamic, dynamic> toJson() => {
        "path": path,
        "createBy": createBy,
        "size": size,
        "createTime": createTime,
        "name": name,
        "qingbaoId": qingbaoId,
        "updateTime": updateTime,
        "id": id,
        "type": type,
        "isDel": isDel,
        "coverImg": coverImg,
    };
}
